﻿<Window x:Class="WpfPanel.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="483" Width="582">
    <Grid>
        <DockPanel LastChildFill="True">
            <WrapPanel DockPanel.Dock="Top">
                <ToggleButton x:Name="butt" Content="text" Width="100" Click="butt_Click" />
            </WrapPanel>
            <Canvas Name="canvas" MouseMove="Canvas_MouseMove" Background="Transparent">
                <Polygon Name="poly" Stroke="Blue" Points="20 20, 250 100, 500 20, 400 300, 250, 250 100 300" />
                <Ellipse Name="ellipsePoint" Fill="Red" Stroke="Red" Width="10" Height="10" />
                <Ellipse Name="ellipsePoint2" Fill="Green" Stroke="Green" Width="10" Height="10" />

                <Rectangle Width="100" Height="100" Fill="Pink" Canvas.Left="100" Canvas.Top="100" >
                    <!--<Rectangle.LayoutTransform>
                        <RotateTransform Angle="-60" />
                    </Rectangle.LayoutTransform>-->
                </Rectangle>
                
                <Ellipse Fill="Red" Width="10" Height="10" Canvas.Left="95" Canvas.Top="95" />
            </Canvas>
        </DockPanel>
    </Grid>
</Window>
